# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-artifacts
_pkgname=artifacts
pkgver=20240518
pkgrel=3
pkgdesc='Digital Forensics Artifact Repository.'
url='https://pypi.org/project/artifacts/#files'
arch=('any')
license=('Apache')
depends=('python' 'python-yaml' 'python-pyaml' 'python-mock' 'python-pbr'
         'python-six')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('32adf6eac2b46b3997e6311b3ede6149f8b3f792162ecace27591f5308b4699f73944d1f67349f9ff66cc6ecb3469f483c003d753501b414b70ad0460e0bf391')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

